<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<h:head>

	<h:panelGroup rendered="#{sessaoMB.usuario.administrador}">

		<f:view>
			<ui:include src="../topo.xhtml"></ui:include>
		</f:view>
</h:head>
<h:body>
	<h:form id="form">
		<p:growl showDetail="true"></p:growl>

		<h:outputLabel value="Codigo"></h:outputLabel>
		<h:inputText value="#{editarEquipamentoMB.codigo}" readonly="true"></h:inputText>
		<br></br>
		<h:outputLabel value="nome"></h:outputLabel>
		<h:inputText value="#{editarEquipamentoMB.nome}" readonly="true"></h:inputText>
		<br></br>
		<h:outputLabel value="Descricão"></h:outputLabel>
		<h:inputText value="#{editarEquipamentoMB.descricao}"></h:inputText>
		<br></br>
		<h:outputLabel value="Quantidade"></h:outputLabel>
		<h:inputText value="#{editarEquipamentoMB.quantidade}"></h:inputText>
		<br></br>
		<h:outputLabel value="Reservado"></h:outputLabel>
		<h:inputText value="#{editarEquipamentoMB.reservado}"></h:inputText>
		<br></br>
		<p:commandButton value="Editar" action="#{editarEquipamentoMB.editar}"
			update="form"></p:commandButton>
	</h:form>

	<div class="rodape">
		<ui:include src="/rodape.xhtml"></ui:include>
	</div>
	</h:panelGroup>
</h:body>
</html>